#ifndef OBJECT2D_HPP
# define OBJECT2D_HPP

# include <QString>

class Object2D
{
public:
    Object2D();
    Object2D(QString const& name, QString const& path, const int width, const int height, const int positionX, const int positionY);

    QString const&  getName() const;
    void            setName(QString const& name);

    QString const&  getPath() const;
    void            setPath(QString const& path);

    int             getWidth() const;
    void            setWidth(const int width);

    int             getHeight() const;
    void            setHeight(const int height);

    void            setDimensions(const int newWidth, const int newHeight);

    int             getPositionX() const;
    void            setPositionX(const int positionX);

    int             getPositionY() const;
    void            setPositionY(const int positionY);

    void            setPosition(const int positionX, const int positionY);

protected:
    QString         _name;
    QString         _path;

    int             _width;
    int             _height;

    int             _positionX;
    int             _positionY;
};

#endif // OBJECT2D_HPP
